var api = require('../../../utils/api.js')
var $ = require('../../../utils/util.js')
var regeneratorRuntime = require('../../../utils/runtime.js')
var app = getApp()

Page({
  data: {
    list: [
      { tit: '外观情况', con: '名称标识齐全、清晰、准确，相色标志齐全、正确、无异味、异响'},
      { tit: '基础', con: '无塌陷、倾斜，接地扁铁无锈蚀、脱焊、断裂' },
      { tit: '表计', con: '表计外观完好、指示正常' },
      { tit: '运行状态', con: '低压开关工作正常，无过热、烧焦及异昧，无异响，' },
      { tit: '绝缘子', con: '绝缘子无破损、裂纹、严重污秽、闪络放电的痕迹' },
      { tit: '断路器', con: '手动操作机构所在位置与设备实际运行状态相符，分合位置指示灯及机构指示正确' },
      { tit: '接地', con: '接地线无断裂或破损、生锈、腐蚀' }
    ],
    equipment: '' ,  // 设备名称
    id:0,
    ticket_num: ''
  },
  onLoad: function (options) {
    if ('id' in options){
      this.setData({
        id: options.id,
        ticket_num: options.ticket_num
      })
    }

    this.setData({
      equipment: options.equipment || ''
    })

    console.log(this.data.id, '$$info$$')
  },
  onShow: function () {

  },
  toPollingManageCheckInHandle(){ // 去缺陷详情
    $.linkurl(`/pages/pollingManage/pollingManageCheckIn/pollingManageCheckIn?id=${this.data.id}&ticket_num=${this.data.ticket_num}`)
  }
})